package com.mvu.banana.user.client;

import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Frame;
import com.google.gwt.user.client.ui.SplitLayoutPanel;
import com.mvu.banana.common.client.Page;
import com.mvu.banana.common.widget.BottomPanel;
import com.mvu.banana.common.widget.Logo;
import com.mvu.banana.guest.client.UserTile;

/**
 * Class description...
 *
 * @author gantz
 */
public class Tiles extends Page {

  public void init(){
    int width = 300;
    SplitLayoutPanel splitLayoutPanel = new SplitLayoutPanel();
    {
      {
        FlowPanel navigation = new FlowPanel();
        navigation.add(new Logo());
        navigation.add(new UserTile());
        navigation.add(new Places());
        navigation.add(new BottomPanel(true));
        splitLayoutPanel.addEast(navigation, width);
      }
      {
        Frame frame = new Frame("http://www.bing.com");
        frame.setWidth("100%");
        frame.setHeight("100%");
        splitLayoutPanel.add(frame);
      }
    }
    initWidget(splitLayoutPanel);
  }
}
